package com.youi.shop.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 支付表
 * </p>
 *
 * @author xxf
 * @since 2020-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_orderpayment")
@ApiModel(value="Orderpayment对象", description="支付表")
public class Orderpayment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付主键")
    @TableId(value = "payment_id", type = IdType.AUTO)
    private Long paymentId;

    @ApiModelProperty(value = "订单主键")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "商家用户主键")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @TableLogic
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
    @TableField("delete_status")
    private Integer deleteStatus;

    @ApiModelProperty(value = "支付方式：0->未支付；1->支付宝；2->微信")
    @TableField("pay_type")
    private Integer payType;

    @ApiModelProperty(value = "付款金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "支付流水号")
    @TableField("out_trade_no")
    private String outTradeNo;


}
